<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>社区掌柜管理系统</title>
<%@include file="../res/include/base-head.jsp"%>
<%@include file="../res/include/jquery-easyui.jsp"%>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/res/css/index.css"/>
<script type="text/javascript" src="${pageContext.request.contextPath}/res/js/admin.js"></script> 
</script>
</head>
<body>
	<div class="easyui-layout" data-options="fit:true">
		<div data-options="region:'north',border:false,split:false" class="header_wrap">
			<div class="header clearfix">
            	<h1 class="logo"><img src="${pageContext.request.contextPath}/res/images/admin/logo.png" alt=""></h1>
                <h2>${loginCommunityName}&nbsp;&nbsp;</h2>
                <h4 class="header_title">社区掌柜管理系统</h4>
                <p><a href="${pageContext.request.contextPath}/user/admin/logout">退出</a></p>
                <dl>
                	<dt><img src="${pageContext.request.contextPath}/res/images/admin/f.jpg" alt=""></dt>
                    <dd>${currUser.name}</dd>    
                </dl>
            </div>
		</div>
		<div data-options="region:'west',border:false" style="width:182px;background-color:#4a5864">
			<div class="easyui-accordion mainmenu" data-options="border:false,onSelect:selectAccordion">
				<c:forEach items="${menus}" var="m">
		            <div menu-id="${m.menuId}" data-options="title:'${m.name}',iconCls:'${m.icon}'">
	                    <ul id="menu-tree-${m.menuId}"></ul>
	                </div>
                </c:forEach>
			</div>
		</div>
		<div data-options="region:'center'">
			<div id="tabpanel" class="easyui-tabs" data-options="fit:true,border:false,plain:false,onContextMenu:tabpanelContextMenu"></div>
		</div>
	</div>
	
	<!-- 在tabpanel头右键弹出的菜单 -->
	<div id="tabpanel-menu" class="easyui-menu" style="width:120px;">
		<div onclick="closeTab('close');" data-options="iconCls:'icon-cancel'">关闭</div>
		<div onclick="closeTab('other');">关闭其它</div>
		<div onclick="closeTab('all');">关闭全部</div>
		<div onclick="closeTab('left');">关闭左边</div>
		<div onclick="closeTab('right');">关闭右边</div>
	</div>
</body>
</html>